package cn.ffcs.uec.organization.manager.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.organization.dao.UecOrgDeptDao;
import cn.ffcs.uec.organization.manager.UecOrgDeptManager;
import cn.ffcs.uec.organization.model.UecOrgDept;
import cn.ffcs.uec.organization.model.UecOrgOrgs;
import cn.ffcs.uec.organization.vo.OrganizationRelationVo;
import cn.ffcs.uec.organization.vo.UecOrgDeptVo;
import cn.ffcs.uec.outStaff.dao.UecOutStaffDao;
import cn.ffcs.uec.staff.dao.UecStaffInfoDao;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecOrgDeptManager")
@Scope("prototype")
public class UecOrgDeptManagerImpl implements UecOrgDeptManager {

    @Resource
    private UecOrgDeptDao uecOrgDeptDao;

    @Autowired
    UecOutStaffDao uecOutStaffDao;

    @Autowired
    UecStaffInfoDao uecStaffInfoDao;

    @Override
    public UecOrgDept findUecOrgDeptByOrganizationRelationVo(OrganizationRelationVo organizationRelationVo) {
        return uecOrgDeptDao.findUecOrgDeptByOrganizationRelationVo(organizationRelationVo);
    }

    @Override
    public UecOrgDept findUecOrgOrgsByUecOrgDept(UecOrgDept uecOrgDept) {
        return uecOrgDeptDao.findUecOrgOrgsByUecOrgDept(uecOrgDept);
    }

    @Override
    public UecOrgDept findUecOrgDeptByOrgDept(UecOrgDept uecOrgDept) {
        return uecOrgDeptDao.findUecOrgDeptByOrgDept(uecOrgDept);
    }

    @Override
    public PageInfo queryUecOrgDeptPage(UecOrgDeptVo uecOrgDeptVo, int currentPage, int pageSize) {
        return uecOrgDeptDao.queryUecOrgDeptPage(uecOrgDeptVo, currentPage, pageSize);
    }

    @Override
    public PageInfo queryUecOrgDeptPageInfo(UecOrgDeptVo uecOrgDeptVo, int currentPage, int pageSize) {
        return uecOrgDeptDao.queryUecOrgDeptPageInfo(uecOrgDeptVo, currentPage, pageSize);
    }

    @Override
    public PageInfo findUecOrgDeptByOrgOrgs(UecOrgOrgs uecOrgOrgs, int currentPage, int pageSize) {
        return uecOrgDeptDao.findUecOrgDeptByOrgOrgs(uecOrgOrgs, currentPage, pageSize);
    }

    @Override
    public String getUecOrgDeptNameByPkDept(String pkDept) {
        return uecOrgDeptDao.getUecOrgDeptNameByPkDept(pkDept);
    }

    @Override
    public PageInfo queryAllColumnUecOrgDeptPage(UecOrgDept uecOrgDept, int currentPage, int pageSize) {
        return uecOrgDeptDao.queryAllColumnUecOrgDeptPage(uecOrgDept, currentPage, pageSize);
    }
}
